package com.ruoyi.erecord.employee.domain.bo;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 人员业务对象 t_employee
 *
 * @author cc
 * @date 2023-04-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EmployeeBo extends BaseEntity {

    /**
     * id
     */
    private Long id;
    
    /**
     * 人员编码
     */
    @NotBlank(message = "人员编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeCode;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeName;

    /**
     * 性别
     */
    @NotNull(message = "性别不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer sex;

    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String identityId;

    /**
     * 出生日期
     */
    private Date birthdate;

    /**
     * 服务部门
     */
    @NotNull(message = "服务部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 岗位
     */
    private Long postId;

    /**
     * 服务类型
     */
    private Integer serviceType;
    
    /**
     * 劳动合同
     */
    private String laborContract;

    /**
     * 学历
     */
    private Integer education;

    /**
     * 职称
     */
    private String professionalTitle;

    /**
     * 入职日期
     */
    private Date entryDate;

    /**
     * 离职日期
     */
    private Date quitDate;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 社保
     */
    private String socialInsurance;

    /**
     * 意外险
     */
    private String accidentInsurance;

    /**
     * 身份证扫描件
     */
    private String identityPicture;

    /**
     * 资格证书
     */
    private String qualification;

    /**
     * 员工状态
     */
    private Integer employeeStatus;

    /**
     * 头像
     */
    private String avtar;

    /**
     * 备注
     */
    private String remark;


}
